{% extends "common.html" %}
{% block css %}
<script src="/static/js/laydate.js"></script>
<link href="/static/css/bootstrap.css" rel="stylesheet" type="text/css">
{% endblock %}
{% load i18n %}
{% block content %}
<style type="text/css">
  .laydate_box, .laydate_box * {
        box-sizing:content-box;
    }
</style>

<div class="wrap" style="width:1200px ">
    <div class="form-horizontal text-left">
         <form method="post" action="{% url "myResume" %}" id="pickupForm">
       {% csrf_token %}
      <div class="form-group">
       
      </div>
      <div class="form-group">
    <label class="col-sm-2 control-label">{% trans "realName" %}:</label>
        <div class="col-sm-2">
          <input type="text" class="form-control" name="realName" value="{{realName}}">
        </div>
      </div>

      <div class="form-group">
    <label class="col-sm-2 control-label">{% trans "date of birth" %}:</label>
        <div class="col-sm-2">
          <input type="text" class="form-control" name="birthday" value="{{birthday|date:"Y-m-d"}}" onclick="laydate()">
        </div>
      </div>

      <div class="form-group">
      <label class="col-sm-2 control-label">{% trans "official academic credentials" %}:</label>
    
       <div class="col-sm-2" id="">   
       <select class="form-control col-sm-2" name="degree">
       {% for x,y in education %}
			{% if x != 5  %}
         <option value="{{x}}" {% if x == degree %}selected="selected"{% endif %}>{% trans y %}</option>
			{% endif %}
       {% endfor %}
        
         
       </select>
       </div>
     

       

      </div>

<div class="form-group">
      <label class="col-sm-2 control-label">{% trans "sex" %}:</label>

       <div class="col-sm-2" id="">
       <select class="form-control col-sm-2" name="gender">
    
         <option value="true" {% if gender == True %}selected="selected"{% endif %} >{% trans "man" %}</option>
         <option value="false" {% if gender == False %}selected="selected"{% endif %}>{% trans "woman" %}</option>
     
        
         
       </select>
       </div>
     

       

      </div>
      <div class="form-group">
    <label class="col-sm-2 control-label">{% trans "current" %}{% trans "city" %}:</label>
        <div class="col-sm-2">
          <input type="text" class="form-control" name="city" value="{{city}}">
        </div>
      </div>



      <div class="form-group">
        <label class="col-sm-2 control-label">{% trans "workYear" %}:</label>
        <div class="col-sm-2">
          <input type="text" class="form-control" name="workYear" value="{{workYear}}">
        </div>
      </div>


       <div class="form-group">
  <label class="col-sm-2 control-label">{% trans "phone number" %}:</label>
        <div class="col-sm-2">
          <input type="text" class="form-control" name="moblie" value="{{moblie}}">
        </div>
      </div>


       <div class="form-group">
        <label class="col-sm-2 control-label">{% trans "introduce oneself" %}:</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" name="introduce" value="{{introduce}}">
        </div>
      </div>

      
      

     <input type="hidden" name="id" value="{{id}}">

       

      


      

  
<div class="form-group">
        <label class="col-sm-2 control-label"></label>
        <div class="col-sm-2">
         <input class="btn btn-default blue col-sm-6"  type="submit" value="{% trans "submit" %}">


        </div>
      </div>
   </form>

    </div>



 </div>  
 </form>
<script type="text/javascript">
$(document).ready(function() {
    $('#pickupForm')
        .bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                realName: {
                    message: 'The postal code is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "realName" %}{% trans "is required and cannot be empty" %}'
                        },
                       
                      
                    }
                },
                 birthday: {
                    message: 'The name is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "date of birth" %} {% trans "is required and cannot be empty" %}'
                        },
                     
                    }
                },
                 city: {
                    message: 'The name is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "current" %}{% trans "city" %}:</ {% trans "is required and cannot be empty" %}'
                        },
                     
                    }
                },
               workYear: {
                    message: 'The name is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "workYear" %}:</ {% trans "is required and cannot be empty" %}'
                        },
                        numeric: {
                          message: '{% trans "Only numbers are allowed" %}'
                        }
                    }
                },
                moblie: {
                    message: 'The name is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "phone number" %} {% trans "is required and cannot be empty" %}'
                        },
                        numeric: {
                          message: '{% trans "Only numbers are allowed" %}'
                        }
                     
                    }
                },
                 introduce: {
                    message: 'The name is not valid',
                    validators: {
                        notEmpty: {
                            message: '{% trans "introduce oneself" %} {% trans "is required and cannot be empty" %}'
                        },
                     
                    }
                }


            }
        })
      })
  </script>
  {% endblock %}  